Class: SingletonBehaviour<T>
- Namespace:
Global - Assembly:
Dew.Core.dll - Inheritance / Derived: DevCanvas → Room_BossArena → Special_RoomAnnouncer → UI_BindingWindow → UI_EmoteWheel → UI_GamepadTextInput
csharp
public class SingletonBehaviour<T> : MonoBehaviour where T : MonoBehaviourProperties
| Name | Declaration | Description |
|---|---|---|
instance | public static T instance { get; } | If you expect the instance to be null, you MUST USE softInstance in Update loops.This will call FindObjectOfType if current instance is null, which can be very expensive. |
softInstance | public static T softInstance { get; } |
Methods
Awake()
csharp
protected virtual void Awake()